/* Copyright 2008 Milko Slavov
 * This file is part of GEH.
 * GEH is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * GEH is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * See <http://www.gnu.org/licenses/>.
*/
package com.geh.event.example;

public class ValueEvent
{
   private Object oldValue;
   private Object newValue;
   private ValueHolder parent;
   
   protected ValueEvent(Object old, Object newV, ValueHolder parent) {
      this.oldValue = old;
      this.newValue = newV;
      this.parent = parent;
   }

   public Object getOldValue()
   {
      return oldValue;
   }

   public Object getNewValue()
   {
      return newValue;
   }

   public ValueHolder getParent()
   {
      return parent;
   }
}
